package cc.openhome;

/**
 * Created by xuzhihan on 17/3/19.
 */
public class Ocean {
    public static void main(String[] args) {

        doSwim(new Human("贾斯汀"));
        doSwim(new Submarine("hangke")); doSwim(new Shark("shake"));
        }


    static void doSwim(Swimmer swimmer){
        swimmer.swim();
    }
}
